Repository navigation
Draw Vega-Lite shape and point channels on line and area overlays like Vega-Lite - #103
Merged
Merged
Conversation
…ints Match Vega-Lite's path overlay normalizer: the shape channel is dropped from the path layer (no vl-channel-shape report, no grouping), switches the point overlay on when the mark has no point property, and is drawn by the overlay points; the scales and legend of the shape (merged with a color of the same field) are built. angle, strokeDash and the size of an area reach the overlay points too, and are still reported for the path mark itself. Without an overlay (point: false) the shape is reported as before. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…end symbols, and the area line overlay - The feature catalog takes the effective configuration (the caller's included) when a render has one, so the overlay-dependent reports agree with what is drawn. - The legend symbols of a path mark with a point overlay are those of the filled overlay point, as in the merged Vega-Lite legend. - The line overlay of an area is tracked next to the point overlay: the channels a line draws (size as the width, strokeDash) get scales and are drawn on it, with the stroke width range; the catalog names the overlay that draws a channel. - The overlay definitions move to SpecNormalizer.PathOverlay.cs for the mark builder, the scale resolver, the legend planner and the catalog. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The supplied review status identifies no active issues, and the change scope addresses overlay behavior across implementation, diagnostics, scales, rendering, legends, tests, and documentation.
No open issues 🎉
What changed in this PR
Updates Vega-Lite path overlays so shape and other point/line channels render consistently on line, area, trail, and rule marks, with aligned scales, legends, diagnostics, tests, and documentation.
Changes:
- Centralizes point and line overlay decisions, including shape-triggered overlays.
- Updates rendering, scale resolution, legend planning, and feature diagnostics.
- Adds unit and integration coverage plus synchronized design, verification, requirements, and architecture documentation.
Review findings remain:
FeatureCatalog.csshould continue visiting shape definitions while suppressing only the path-specific channel diagnostic.- Configuration-level
point: "transparent"should preserve transparent overlay rendering. - The area legend test should assert against
areaSymbolsrather than the earliersymbolscollection.
| File | Description |
|---|---|
test/DemaConsulting.CanvasNet.VegaLite.Tests/VegaLiteLineAreaIntegrationTests.cs |
Adds strict-mode integration tests for shaped overlays, caller configuration, and area line overlays. |
test/DemaConsulting.CanvasNet.VegaLite.Tests/SpecModel/FeatureCatalogTests.cs |
Tests overlay-aware feature reporting and legends. |
test/DemaConsulting.CanvasNet.VegaLite.Tests/Scales/MarkChannelGatingTests.cs |
Tests overlay scale gating, diagnostics, and merged legends. |
test/DemaConsulting.CanvasNet.VegaLite.Tests/Marks/MarkBuilderOverlayTests.cs |
Tests shaped points, point channels, and area line-overlay styling. |
src/DemaConsulting.CanvasNet.VegaLite/VegaLiteDocument.Render.cs |
Applies effective caller configuration when recording reports. |
src/DemaConsulting.CanvasNet.VegaLite/VegaLiteDocument.cs |
Recomputes configuration-dependent feature reports. |
src/DemaConsulting.CanvasNet.VegaLite/third-party/README.md |
Updates Vega-Lite provenance for path overlay behavior. |
src/DemaConsulting.CanvasNet.VegaLite/SpecModel/SpecNormalizer.PathOverlay.cs |
Adds shared point/line overlay decision and channel-routing logic. |
src/DemaConsulting.CanvasNet.VegaLite/SpecModel/FeatureCatalog.cs |
Makes channel diagnostics overlay-aware. |
src/DemaConsulting.CanvasNet.VegaLite/Scales/ScaleResolver.cs |
Builds scales for channels drawn by point and line overlays. |
src/DemaConsulting.CanvasNet.VegaLite/Marks/MarkBuilder.Overlays.cs |
Reuses centralized overlay definitions during rendering. |
src/DemaConsulting.CanvasNet.VegaLite/Guides/LegendPlan.cs |
Uses filled point-overlay facts for path-mark legends. |
docs/verification/canvas-net-vega-lite/spec-model/spec-normalizer.md |
Documents path-overlay verification coverage. |
docs/verification/canvas-net-vega-lite/spec-model/feature-catalog.md |
Documents overlay-aware catalog verification. |
docs/verification/canvas-net-vega-lite/scales/scale-resolver.md |
Documents overlay scale-resolution verification. |
docs/verification/canvas-net-vega-lite/marks/mark-builder.md |
Documents overlay rendering verification. |
docs/verification/canvas-net-vega-lite/marks.md |
Adds integration verification entries. |
docs/verification/canvas-net-vega-lite/guides/legend-builder.md |
Documents shaped and filled overlay legend verification. |
docs/verification/canvas-net-vega-lite.md |
Adds detailed integration verification scenarios. |
docs/user_guide/canvas-net-vega-lite.md |
Updates supported channel and overlay behavior documentation. |
docs/sysml2/model/canvas-net-vega-lite/spec-model/spec-normalizer.sysml |
Adds the path-overlay source artifact to the model. |
docs/reqstream/canvas-net-vega-lite/spec-model/spec-normalizer.yaml |
Adds path-overlay requirements and linked tests. |
docs/reqstream/canvas-net-vega-lite/spec-model/feature-catalog.yaml |
Extends feature-catalog requirements for overlay diagnostics. |
docs/reqstream/canvas-net-vega-lite/spec-model.yaml |
Registers the path-overlay requirement decomposition. |
docs/reqstream/canvas-net-vega-lite/scales/scale-resolver.yaml |
Extends scale requirements for overlay channels. |
docs/reqstream/canvas-net-vega-lite/marks/mark-builder.yaml |
Extends mark-builder requirements for overlay rendering. |
docs/reqstream/canvas-net-vega-lite/guides/legend-builder.yaml |
Extends legend requirements for shaped overlays. |
docs/reqstream/canvas-net-vega-lite.yaml |
Extends system overlay requirements and integration tests. |
docs/design/introduction.md |
Adds the new normalizer source file to the repository map. |
docs/design/canvas-net-vega-lite/spec-model/spec-normalizer.md |
Documents the path-overlay design. |
docs/design/canvas-net-vega-lite/spec-model/feature-catalog.md |
Documents overlay-aware feature-catalog design. |
docs/design/canvas-net-vega-lite/spec-model.md |
Adds the new normalizer partial to the subsystem design. |
docs/design/canvas-net-vega-lite/scales/scale-resolver.md |
Documents overlay scale behavior. |
docs/design/canvas-net-vega-lite/marks/mark-builder.md |
Documents overlay rendering and the updated deviation. |
docs/design/canvas-net-vega-lite/guides/legend-builder.md |
Documents point-overlay legend facts. |
docs/design/canvas-net-vega-lite.md |
Updates the overall Vega-Lite design deviations and overlay rules. |
Review effort: Lite
This was referenced Nov 4, 2026
Merged
Malcolmnixon
added a commit
that referenced
this pull request
Nov 4, 2026
…107) Since #103 a shape on a line enables the point overlay, so it is drawn and no longer reports vl-channel-shape; the #102 stderr tests (merged after #103 on a stale base) relied on that diagnostic and failed on main. Co-authored-by: Malcolm Nixon <Malcolm.Nixon@hiarc.inc> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Fixes Vega-Lite
shape(and the other point channels) on the point and line overlays ofline,areaandtrailmarks. Today CanvasNet ignoredshapeeven with"point": trueand reportedvl-channel-shape.CanvasNet now follows Vega-Lite's
PathOverlayNormalizer(src/normalize/pathoverlay.ts) and itsgetPointOverlayrule.When the point overlay is on
mark.pointistrue, an object, or"transparent"mark.pointis absent andconfig.<mark>.pointis truthymark.pointis absent andencoding.shapeexistsshapeswitches it on, as in Vega-Lite)mark.pointisfalseornullWhat changes
shape, and the point layer gets the whole encoding exceptx2andy2.shape,angle,strokeDashandsizewhen an overlay draws them. An area'slineoverlay gets field-drivensize(line width) andstrokeDash.mergeSymbolTypeandencode.symbols). It is hollow only when the overlay setsfilled: false.vl-channel-shapeis reported only when the overlay is off. The remaining messages name the overlay that draws a channel. A caller-suppliedVegaLiteRenderOptions.Configis applied to these reports too, so the catalog and the renderer always agree, including under--strict.The overlay decision lives in
SpecNormalizer.PathOverlay.csand is shared by the normalizer, scale resolver, mark builder, legend planner and feature catalog. This removes the old documented deviation #1 inmark-builder.md.Render
A line with a point overlay, with shape and color set by group:
Type of Change
Related Issues
User feedback: a
shapeencoding on a line mark was ignored.Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
pwsh ./build.ps1(46,032 tests, 0 failed)Code Quality
Quality Checks
Please run the following checks before submitting:
pwsh ./lint.ps1passed, plus the Pandoc harness andrender-images.ps1 -CheckTesting
vl-channel-shapetests now usepoint: falseDocumentation
Additional Notes
An area with
line: trueplus ashapestays silent forshape. Vega-Lite's line-overlay layer would warn about it, but the overlay points draw it, so it is not reported.